package cn.ecnu.paper.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class PaperFrontVo {
    private Integer paperId;
    private String title; // 论文标题
    private String journal; // 期刊名称
    private Integer type;
    private List<AuthorSort> authors; // 论文
    private String abstracts;
    private String link;
    private List<Integer> refers;
    private List<Integer> belongs;
    private Integer posterId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date postTime; // 发布者发布论文时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime; // 论文发表时间

}
